package factoryMethod;

public class Main {
    public static void main(String[] args) {
        Factory factory = new FactoryImpl();
        factory.get(Apple.class).get();
        factory.get(Banana.class).get();

    }
}
